<%@page import="java.util.*,com.netqin.kingviker.ProcessCustomService,org.activiti.engine.*,java.util.zip.*,org.activiti.engine.task.*"%>
<%
	TaskService taskService = ProcessCustomService.getTaskService();
	String taskId = request.getParameter("taskId");
	List<Task> taskList = taskService.createTaskQuery().taskId(taskId).list();
	Task task = taskList.get(0);
	String taskName = task.getName();
	Map map = new HashMap();
	map.put("day",request.getParameter("day"));
	map.put("reason",new String(request.getParameter("reason").getBytes("ISO-8859-1"), "UTF-8"));
	map.put("type",request.getParameter("type"));
	taskService.complete(taskId, map);
	response.sendRedirect("index.jsp");
%>